package com.Lishuai.Control.Imp;



import com.Lishuai.Pojo.Mangerment;
import com.Lishuai.Servce.MangermentServce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/management")
public class MangermentControllerImp {

    @Autowired
    private MangermentServce managementService;

    @PostMapping("/delete")
    public void delete(@RequestBody List<Integer> ids) {
        managementService.delete(ids);
    }

    @PostMapping("/login")
    public boolean login(@RequestBody Mangerment mangerment) {
        return managementService.login(mangerment);
    }
}


